#ifndef _ACTION_SLEEP_H_
#define _ACTION_SLEEP_H_

#include "../../RPGAction.h"

class Action_Sleep : public RPGAction
{

public:

	Action_Sleep() : RPGAction()
	{
		// seteo los valores de la accion
		pAnimation = new Animation();
		pAnimation->Load("./data/actions/specialAttack.ani");	// cargo la animacion
		strcpy(pszName, "Sleep");
		fTimeToExecute = 1.0f;
		fTimeToFinish = 1000.0f;
	}
	
	~Action_Sleep()
	{
		delete pAnimation;
	}

	// sobrecargas de los metodos de RPGAction
	void Execute(RPGCharacter *pCharacter)
	{
		RPGAction::Execute(pCharacter);

		RPGCharacter * pChar;
		pChar = pCharacter->GetCollisionCharacter();
		if(pChar){
				pChar->SetCurrentAction("Sleeping");
		}
	}
};

#endif //_ACTION_SLEEP_H_